W3Schools
Click the button to display the value of the id attribute of the link above.
Try it